package com.midou.administration.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.midou.administration.bo.ClerkBo;
import com.midou.administration.bo.CommonResult;
import com.midou.administration.entity.Journal;
import com.midou.administration.service.impl.JournalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/administration/journal")
public class JournalController {
    @Autowired
    private JournalService journalService;


    @RequestMapping("queryJouranl")
    public Page queryJouranl(@RequestBody ClerkBo clerkBo){
        return journalService.queryJouranl(clerkBo);
    }

    @RequestMapping("saveRiZhi")
    public String saveRiZhi(@RequestBody Journal journal){
        journalService.saveRiZhi(journal);
        return null;
    }

    @RequestMapping("deleteShop")
    public CommonResult deleteShop(@RequestBody Integer id){
        return journalService.deleteShop(id);
    }



}
